{% extends "layout.html" %}

{% block head %}
<title>{{ _(config["WEBSITE_NAME"]) }} - {{ _("Login") }}</title>
<meta name="robots" content="index">
<meta name="description" content="{{ _('Login into uruk project website.') }}">
{% endblock %}

{% block body %}
<div class="container-fluid text-center" style="box-shadow: 1px 1px 2px grey; padding: 20px; width: 30% !important; margin: 100px auto !important;">
	<form action="{{ url_for('wiki.login') }}", method="POST">
		<input name="_csrf_token" type="hidden" value="{{ csrf_token() }}">
		{% if get_flashed_messages() %}
			<div class="alert alert-warning">
				<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
		  		<strong>{{ _("Warning!") }}</strong> {{ _("Email or password isn't correct.") }}
			</div>
		{% endif %}
		<div class="form-group">
			<label for="email">{{ _("Email address:") }}</label>
			<input type="email" class="form-control" autofocus autocomplete name="email" id="email" focus><br>		
		</div>
		<div class="form-group">
    		<label for="pwd">{{ _("Password:") }}</label>
    		<input type="password" class="form-control" name="password" id="pwd">
  		</div>
 		<button type="submit" class="btn btn-default">{{ _("Submit") }}</button>	
 	</form>
</div>
{% endblock %}